package spring.cloud.tasks.tasks_manager.schedule;


import lombok.Getter;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import spring.cloud.tasks.tasks_manager.dto.TaskDto;


@Slf4j
@Setter
@Getter
public class TaskConfiguration {
    private String taskId;
    private TaskDto taskDto;
    private Long taskVersion;
    private boolean delete = false;//这个是用于标志配置信息是否被删除
    /**
     * 每个任务的预分配列表
     */
    private boolean enabled = true;
    /**
     * 每个任务的预分配列表
     */
    private String preferExecutorIdList = "";

    public TaskConfiguration(String taskId) {
        this.taskId = taskId;
    }
}